<ul class="navbar-nav ms-auto root_links">
  <% actions(:root).select(&:show_in_navigation).each do |action| %>
    <li class="nav-item <%= action.action_name %>_root_link">
      <%= link_to wording_for(:menu, action), { action: action.action_name, controller: 'rails_admin/main' }, {class: ['nav-link']}.merge(action.turbo? ? {} : {data: {turbo: 'false'}}) %>
    </li>
  <% end %>
  <% if main_app_root_path = (main_app.root_path rescue false) %>
    <li class="nav-item">
      <%= link_to t('admin.home.name'), main_app_root_path, class: 'nav-link' %>
    </li>
  <% end %>
  <% if _current_user %>
    <% if user_link = edit_user_link %>
      <li class="nav-item edit_user_root_link">
        <%= user_link %>
      </li>
    <% end %>
    <% if logout_path.present? %>
      <li class="nav-item">
        <%= link_to logout_path, method: logout_method, class: 'nav-link', data: {turbo: 'false'} do %>
          <span class="badge bg-danger"><%= t('admin.misc.log_out') %></span>
        <% end %>
      </li>
    <% end %>
  <% end %>
</ul>
